package com.soft.javase.ch06.integer;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/27
 */
public class IntegerDemo1 {
    public static void main(String[] args) {
        //整型常量池
        Integer i1 = 10;
        Integer i2 = 10;
        System.out.println(i1==i2);
        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println(i3==i4);
        Integer i5 = new Integer(128);
        Integer i6 = new Integer(128);
        System.out.println(i5==i6);
    }
}
